package com.mm.cloud.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mm.cloud.lease.dto.room.query.QueryRoomDTO;
import com.mm.cloud.lease.entity.Room;
import com.mm.cloud.lease.vo.room.RoomPageVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 房间 Mapper 接口
 * </p>
 *
 * @author mr
 * @since 2025-07-01
 */
public interface RoomMapper extends BaseMapper<Room> {

    /**
     * 获取房间列表
     *
     * @param page 分页参数
     * @param dto  查询参数
     * @return 房间列表
     */
    IPage<RoomPageVO> getRoomList(Page<RoomPageVO> page, @Param("dto") QueryRoomDTO dto);

}
